package edu.sctu.xiangkun.day201505.day20150518;


/**
 * Created by user08 on 2015/5/18.
 */
public class TextData {
    Teacher[]  teacher = new Teacher[2];
    public Teacher[] getTeacher(){
        Teacher teacher1 = new Teacher();
        teacher1.number = 10;
        teacher1.name = "张三";
        teacher1.sex = "女";
        teacher1.profession = "副教授";
        teacher1.lesson = "大学英语";
        Student[] students = new Student[3];
        for (int i = 0 ;i < students.length; i ++){
            Student student = new Student();
            student.number = 90+i;
            student.name = "张希"+i;
            student.age = 18;
            student.grade = 60+i;
            student.address = "成都";
            students[i] = student;

        }
        teacher1.student = students;

        Teacher teacher2 = new Teacher();
        teacher2.number = 8;
        teacher2.name = "刘一";
        teacher2.sex = "男";
        teacher2.profession = "教授";
        teacher2.lesson = "大学计算机";
        Student[] students1 = new Student[3];
        for (int i = 0 ;i < students.length; i ++){
            Student student = new Student();
            student.number = 102+i;
            student.name = "李四"+i;
            student.age = 18;
            student.grade = 62+i;
            student.address = "成都";
            students1[i] = student;
        }
        teacher2.student = students1;
        this.teacher[0] = teacher1;
        this.teacher[1] = teacher2;
        return this.teacher;
    }

}
